/* 
 * File:   Timer.h
 * Author: vikrantsingh
 *
 * Created on 2 November, 2013, 10:17 PM
 */

#ifndef TIMER_H
#define	TIMER_H
#include <string.h>
#include <iostream>
using namespace std;
using std::string;


#include <stdio.h>

class Timer {
public:
    struct timeval start, end;
    long mtime, seconds, useconds;
    void updateExecutionTime(double diff);

    void updateNumberOfRows(int numOfRows);

    void startTimer();

    void endTimer();

    string getElapsedTimeInSeconds();

    string getElapsedTimeInMilliSeconds();

    void updateExecutionTimeMessage(string msg);
    
    unsigned int getCurrentTime();
    
    string displayElapsedTimeInMilliSeconds();

};

#endif	/* TIMER_H */

